package com.freewater.parking.adapter;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class NotifyPayRequest {

    @NotBlank(message = "车牌号不能为空")
    private String plateNumber;

    @NotNull(message = "支付时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime payTime;

    @Min(value = 0, message = "支付金额不能为空")
    private int amount;
}
